
public class Prescription extends OfficeProcedure {
	
	private double dosage;

	private String instructions;
	
	public Prescription(String prescripName){
		super(prescripName);
		this.procedureType=this.PRESCRIPTION;
	}
	
	public Prescription(String prescripName, double price){
		super(prescripName, price);
		this.procedureType=this.PRESCRIPTION;
	}

	public Prescription(String prescripName, double price, double myDosage){
		super(prescripName, price);
		dosage = myDosage;
		this.procedureType=this.PRESCRIPTION;
	}
	
	public Prescription(String prescripName, double price, 
			double myDosage, String myInstructions){
		super(prescripName, price);
		dosage = myDosage;
		instructions = myInstructions;
		this.procedureType = this.PRESCRIPTION;
	}

	public double getDosage() {
		return dosage;
	}

	public void setDosage(double dosage) {
		this.dosage = dosage;
	}

	public String getInstructions() {
		return instructions;
	}

	public void setInstructions(String instructions) {
		this.instructions = instructions;
	}

	@Override
	public String toString() {
		return "A prescription of " + this.getName() + " at the price of " 
		+ this.getPrice() + " with a dosage of " + this.getDosage() + 
		" has been made with the following instructions: " + this.getInstructions();
	}
	
	
}
